export const formComponentConfig = {
  dictSelect: () => import('@/common/components/dict-select/index.vue'),
  dataPicker: () => import('./data-picker.vue'),
  selectPersonal: () => import('@/common/components/search-modal/user.vue'),
};

export const formRenderConfig = {
  taskCode: {
    label: '任务编号',
    field: 'taskCode',
    componentName: 'input',
  },
  status: {
    label: '状态',
    field: 'status',
    componentName: 'select',
    componentProps: {
      options: [
        { label: '成功', value: 1 },
        { label: '失败', value: 0 },
      ],
    },
  },
  kaishikai: {
    label: '运行开始时间(从)',
    field: 'logStartTimeFrom',
    componentName: 'dataPicker',
  },
  kaishizhi: {
    label: '运行开始时间(至)',
    field: 'logStartTimeTo',
    componentName: 'dataPicker',
  },
  endkai: {
    label: '执行结束时间(从)',
    field: 'logEndTimeFrom',
    componentName: 'dataPicker',
  },
  endend: {
    label: '执行结束时间(至)',
    field: 'logEndTimeTo',
    componentName: 'dataPicker',
  },
  tenantId: {
    label: '编制人名称',
    field: 'creator',
    componentName: 'selectPersonal',
    componentProps: {},
  },
};
